//
// Maths.hpp for  in /home/goldbe_y//cpp/Maths/206observ
//
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
//
// Started on  Mon May  2 16:47:00 2011 yoni goldberg
// Last update Wed May 11 15:31:20 2011 leo faucon
//

#ifndef __MATHS_HPP__
# define __MATHS_HPP__

#include <iostream>
#include <vector>

class Maths
{
public:
  Maths(std::vector<int> &, std::vector<int> &, int);
  ~Maths();

  void				frequence();
  std::vector<float>		getres();
  std::vector<float>		getfreq();

private:
  void		moy_ari();
  void		moy_quad();
  void		moy_geo();
  void		moy_harm();
  void		mediane();
  void		mode();
  void		variance();
  void		ecart_type();
  void		ecart_moyen();
  void		ecart_median();

  void		premier_quart();
  void		troisieme_quart();

  int			line;
  int			total;

  std::vector<int>	val;
  std::vector<int>	coef;

  std::vector<float>	freq;
  std::vector<float>	res;
};


#endif /* !__MATHS_H__ */
